Communication

Back to ece454

A middleware layer sits between the transport layer and the application layer (we start to depart from the OSI model here.)

Remote Procedure Calls

These work similar to normal procedure calls, but over the network. The arguments that would be pushed to the stack in a conventional procedure call get sent in a message over the network.

Message queueing model

Apache Thrift

Software stack:

Defining services in the IDL

namespace java example1

exception IllegalArgument {
  1: string message;
}

service MathService {
  double sqrt(1:double num) throws (1: IllegalArgument ia)
}

Asynchronous client